package com.jydd.singlekotlinmvvm.comm.base

import android.os.Bundle
import android.view.LayoutInflater
import android.view.View
import android.view.ViewGroup
import androidx.fragment.app.Fragment

/**
 * created by 韦敏敏
 * on 2020/1/20
 */
abstract class BaseFragment : Fragment() {
    lateinit var rootView: View
    override fun onCreateView(
        inflater: LayoutInflater,
        container: ViewGroup?,
        savedInstanceState: Bundle?
    ): View? {
            rootView = inflater.inflate(layout(), container, false)
            return rootView
    }
    abstract fun layout() : Int
}